﻿@model LiUTrading.Models.User
           <link href="@Url.Content("~/Content/Site.css")" type="text/css" rel="stylesheet" />
@{
    ViewBag.Title = "Add User";
}
<div id="header">
        <h1>
            LiU Trading
        </h1>
    </div>
<h2>
    Create Profile</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Ajax.BeginForm(new AjaxOptions() { UpdateTargetId = "container", HttpMethod = "post", InsertionMode = InsertionMode.Replace }))
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>User</legend>
        <div class="editor-label">
            @Html.LabelFor(model => model.LiuID)
        </div>
        <p>
            @Html.TextBoxFor(model => model.LiuID, new { @readonly = "true" })
        </p>
        <div class="editor-label">
            First Name
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FirstName)
            @Html.ValidationMessageFor(model => model.FirstName)
        </div>
        <div class="editor-label">
            Last Name
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.LastName)
            @Html.ValidationMessageFor(model => model.LastName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Address)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Address)
            @Html.ValidationMessageFor(model => model.Address)
        </div>
        <div class="editor-label">
            Phone Number
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PhoneNumber)
            @Html.ValidationMessageFor(model => model.PhoneNumber)
        </div>
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}